home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / CyberStarter / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.8 KB  |  59 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FRAME_H
  11. #define FRAME_H
  12.  
  13. // ----- Framework Includes -----
  14. #ifndef FWFRAME_H
  15. #include "FWFrame.h"
  16. #endif
  17.  
  18. //========================================================================================
  19. // Forward Class Declarations
  20. //========================================================================================
  21.  
  22. class FW_CPresentation;
  23. class CPart;
  24.  
  25. //========================================================================================
  26. // CLASS CFrame
  27. //========================================================================================
  28.  
  29. class CFrame : public FW_CFrame
  30. {
  31. public:
  32.     FW_DECLARE_AUTO(CFrame)
  33.  
  34. //----------------------------------------------------------------------------------------
  35. //    Constructor/Destructor
  36. //
  37. public:
  38.     CFrame (Environment* ev, ODFrame* odFrame, FW_CPresentation* presentation, CPart* part);
  39.     virtual ~CFrame();
  40.  
  41. //----------------------------------------------------------------------------------------
  42. //    inherited API from FW_CFrame
  43. //
  44. public:
  45.     void             Draw (Environment* ev, ODFacet* odFacet, ODShape* invalidShape);
  46.     void             DrawUpdate (Environment *ev, FW_CGraphicContext & gc);
  47.     void             FrameShapeChanged (Environment* ev);
  48.     void             FocusStateChanged (Environment *ev, ODTypeToken focus, FW_Boolean newState, ODFrame* newOwner);
  49.     FW_Handled         HandleWindowEvent (Environment* ev, const FW_CMacWindowEvent& windowEvent);
  50.  
  51. //----------------------------------------------------------------------------------------
  52. //    Data Members
  53. //
  54. private:
  55.     CPart*             fPart;
  56. };
  57.  
  58. #endif
  59.